<script setup>
import headerNav from '../../components/headerNav.vue';
import leftNav from '../../components/adminLeft.vue';
</script>  


<template>
    <div class="common-layout">
        <el-container class="layout-container-demo" style="position: relative; height: 100%">
            <!-- 顶部 -->
            <el-header style=" font-size: 12px">
                <headerNav></headerNav>
            </el-header>
            <el-container>
                <el-aside width="200px" >
                    <leftNav style="position: relative; height: 100%;"></leftNav>
                </el-aside>
                <el-main style="min-height: 100vh">
                    <router-view>
                    </router-view>
                </el-main>
            </el-container>
        </el-container>
    </div>
</template>

<style scoped>
.layout-container-demo .el-header {
    position: relative;
    background-color: #545c64;
    color: var(--el-text-color-primary);
}

.layout-container-demo .el-aside {
    color: var(--el-text-color-primary);
    background: #545c64;
}

.layout-container-demo .el-menu {
    border-right: none;
}
</style>
